package day02.override;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/17
 */
public class Employee {
    private String name;
    private String address;
    private double salary;
    // 构造方法
    public Employee(String name, String address, double salary) {
        this.name = name;
        this.address = address;
        this.salary = salary;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public double getsalary() {
        return salary;
    }
    public void setsalary(double salary) {
        this.salary = salary;
    }
    public void show() {
        System.out.println("员工基本信息");
        System.out.println("姓名：" + name);
        System.out.println("地址：" + address);
        System.out.println("基本工资：" + salary);
    }
}
